#include "tcp_server_test.h"

int main(int argc, char *argv[]) {
  sdx::TcpServer cgiServer;
  cgiServer.createSocket();
  cgiServer.bindIp();
  cgiServer.listenData();
  cgiServer.acceptMessage();
  close(STDOUT_FILENO);
  dup(cgiServer.getAcceptFd());
  std::cout << "ok" << std::endl;
  cgiServer.closeAccept();
  cgiServer.closeSocket();
  return 0;
}